New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More

explore-config

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

explore-config

Explore multi-format JavaScript module configuration


Version published
Weekly downloads
142
decreased by-10.13%
Maintainers
0
Weekly downloads
 
Created

techor

Explore multi-format JavaScript module configuration

NPM Version NPM Version NPM package ( download / month ) Follow @mastercorg Github release actions


Getting Started

npm install explore-config

Usage

exploreConfig(name: string, options: ExploreConfigOptions)
import exploreConfig from 'explore-config'

 /**
  * 1. explore -> techor.config.js
  * 2. explore -> techor.config.ts
  * 3. explore -> techor.config.cjs
  * 4. explore -> techor.config.cts
  * 5. explore -> techor.config.mjs
  * 6. explore -> techor.config.mts
  * */
const config = exploreConfig('techor.config')

console.log(config)
// -> {...}
export interface ExploreConfigOptions {
    extensions?: ('js' | 'ts' | 'cjs' | 'cts' | 'mjs' | 'mts')[]
    resolvedKeys?: string[]
    cwd?: string
    found?: (basename: string, configPath: string) => void
}

NPM Version

FAQs

Package last updated on 19 Dec 2024

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts